﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NewDDSys.Entity;
using NewDDSys.Factory;
using NewDDSys.IBLL;
using System.Data;

namespace NewDDSys.BLL
{
    public class KcBLL:IKcBLL
    {
        public int AddKc(KcInfo kc)
        {
            return DALFactory.CreateKcDAL().AddKc(kc);
        }
        public int UpdateKc(string num, string ku, string pinzhong, string guige)
        {
            return DALFactory.CreateKcDAL().UpdateKc(num, ku, pinzhong, guige);
        }
        public int Del(string num)
        {
            return DALFactory.CreateKcDAL().Del(num);
        }
        public DataSet Select(string num)
        {
            return DALFactory.CreateKcDAL().Select(num);
        }
        public DataSet SelectAll()
        {
            return DALFactory.CreateKcDAL().SelectAll();
        }
        public DataSet NumByKu(string ku)
        {
            return DALFactory.CreateKcDAL().NumByKu(ku);
        }
        public DataSet PByK(string ku)
        {
            return DALFactory.CreateKcDAL().PByK(ku);
        }
        public string AUTOID()
        {
            return DALFactory.CreateKcDAL().AUTOID();
        }
        public DataSet KF()
        {
            return DALFactory.CreateKcDAL().KF();
        }
        public DataSet JBCLPByK(string ku)
        {
            return DALFactory.CreateKcDAL().JBCLPByK(ku);
        }
        public DataSet KuNum(string ku)
        {
            return DALFactory.CreateKcDAL().KuNum(ku);
        }
        public DataSet KuGBP(string ku)
        {
            return DALFactory.CreateKcDAL().KuGBP(ku);
        }
    }
}
